/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-04 15:44:03
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-04 16:54:50
 * @别瞎看: 你个无脑牛马
 */
public class Test04_ArrayMax{
    public static void main(String[] args) {
        int[] arr={1000,272,3746,38464,2837,7658,58564,6468};
        System.out.println("数组的最大值为："+findMax(arr));
    }
    public static int findMax(int[] arr){
        int max=arr[0];
        for(int i=1;i<arr.length;i++){
            if(arr[i]>max){
                max=arr[i];
            }
        }
        return max;
    }
   
}